from django.urls import path
from .views import (
    LevelsInfoView,
    StartReciteView,
    StartReviewView,
    UpdateReciteRecordView,
    ReviewWordsView,
    AllReviewWordsView,
    CancelReciteView,
    EndSessionView,
    OngoingSessionsView,
    ReciteStatsView
)

urlpatterns = [
    path('levels-info/', LevelsInfoView.as_view(), name='levels-info'),
    path('start/', StartReciteView.as_view(), name='start-recite'),
    path('start-review/', StartReviewView.as_view(), name='start-review'),
    path('update-record/', UpdateReciteRecordView.as_view(), name='update-record'),
    path('review/words/scheduled/', ReviewWordsView.as_view(), name='review-scheduled'),
    path('review/words/all/', AllReviewWordsView.as_view(), name='review-all'),
    path('cancel/', CancelReciteView.as_view(), name='cancel-recite'),
    path('end-session/', EndSessionView.as_view(), name='end-session'),
    path('ongoing-sessions/', OngoingSessionsView.as_view(), name='ongoing-sessions'),  # 新增路由
    path('stats/', ReciteStatsView.as_view(), name='recite_stats'),
]

